package com.msc.cili.service.guestmessage;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.msc.cili.repository.entity.guestmessage.GuestMessage;
import com.msc.cili.service.guestmessage.bo.GuestMsgBo;

import java.util.List;

/**
 * @author masc
 * @date 2022-07-17 1:09
 * <p>留言墙</p>
 */
public interface GuestMessageService extends IService<GuestMessage> {

    /**
     * @param pageIndex
     * @param pageSize
     * @return java.util.List<com.msc.cili.service.guestmessage.bo.GuestMsgBo>
     * @Author 骑蜗牛的羊
     * @Description: 根据分页信息获取所有留言内容
     * @Date 2023/4/29 19:46
     */
    IPage<GuestMessage> getMsgListByPage(int pageIndex, int pageSize);

    /**
     * @param guestMsgVo
     * @return boolean
     * @Author masc
     * @Description: 创建留言
     * @Date 2022-07-17 10:32
     */
    boolean createMsg(String ip, GuestMsgBo guestMsgVo);
}
